package cn.dd.crmweb.modules.file.controller;


import cn.dd.crmweb.common.Result;
import cn.dd.crmweb.modules.file.mapper.FileMapper;
import cn.dd.crmweb.modules.file.service.IFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author tbb
 * @since 2023-05-01
 */
@RestController
@RequestMapping("/file")
public class FileController {

    @Autowired
    private FileMapper fileMapper;

    @GetMapping("/list")
    public Result findAll(){
        return Result.success(fileMapper.selectList(null));
    }

}

